3.12.43 \(\int (a+b x) (c+d x)^2 \, dx\)

Optimal. Leaf size=38 \[ \frac {b (c+d x)^4}{4 d^2}-\frac {(c+d x)^3 (b c-a d)}{3 d^2} \]

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {43} \begin {gather*} \frac {b (c+d x)^4}{4 d^2}-\frac {(c+d x)^3 (b c-a d)}{3 d^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x)*(c + d*x)^2,x]

[Out]

-((b*c - a*d)*(c + d*x)^3)/(3*d^2) + (b*(c + d*x)^4)/(4*d^2)

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rubi steps

\begin {align*} \int (a+b x) (c+d x)^2 \, dx &=\int \left (\frac {(-b c+a d) (c+d x)^2}{d}+\frac {b (c+d x)^3}{d}\right ) \, dx\\ &=-\frac {(b c-a d) (c+d x)^3}{3 d^2}+\frac {b (c+d x)^4}{4 d^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 47, normalized size = 1.24 \begin {gather*} \frac {1}{12} x \left (4 d x^2 (a d+2 b c)+6 c x (2 a d+b c)+12 a c^2+3 b d^2 x^3\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x)*(c + d*x)^2,x]

[Out]

(x*(12*a*c^2 + 6*c*(b*c + 2*a*d)*x + 4*d*(2*b*c + a*d)*x^2 + 3*b*d^2*x^3))/12

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int (a+b x) (c+d x)^2 \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(a + b*x)*(c + d*x)^2,x]

[Out]

IntegrateAlgebraic[(a + b*x)*(c + d*x)^2, x]

________________________________________________________________________________________

fricas [A]  time = 1.18, size = 49, normalized size = 1.29 \begin {gather*} \frac {1}{4} x^{4} d^{2} b + \frac {2}{3} x^{3} d c b + \frac {1}{3} x^{3} d^{2} a + \frac {1}{2} x^{2} c^{2} b + x^{2} d c a + x c^{2} a \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(d*x+c)^2,x, algorithm="fricas")

[Out]

1/4*x^4*d^2*b + 2/3*x^3*d*c*b + 1/3*x^3*d^2*a + 1/2*x^2*c^2*b + x^2*d*c*a + x*c^2*a

________________________________________________________________________________________

giac [A]  time = 1.03, size = 49, normalized size = 1.29 \begin {gather*} \frac {1}{4} \, b d^{2} x^{4} + \frac {2}{3} \, b c d x^{3} + \frac {1}{3} \, a d^{2} x^{3} + \frac {1}{2} \, b c^{2} x^{2} + a c d x^{2} + a c^{2} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(d*x+c)^2,x, algorithm="giac")

[Out]

1/4*b*d^2*x^4 + 2/3*b*c*d*x^3 + 1/3*a*d^2*x^3 + 1/2*b*c^2*x^2 + a*c*d*x^2 + a*c^2*x

________________________________________________________________________________________

maple [A]  time = 0.00, size = 49, normalized size = 1.29 \begin {gather*} \frac {b \,d^{2} x^{4}}{4}+a \,c^{2} x +\frac {\left (a \,d^{2}+2 b c d \right ) x^{3}}{3}+\frac {\left (2 a c d +b \,c^{2}\right ) x^{2}}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)*(d*x+c)^2,x)

[Out]

1/4*b*d^2*x^4+1/3*(a*d^2+2*b*c*d)*x^3+1/2*(2*a*c*d+b*c^2)*x^2+a*c^2*x

________________________________________________________________________________________

maxima [A]  time = 1.31, size = 48, normalized size = 1.26 \begin {gather*} \frac {1}{4} \, b d^{2} x^{4} + a c^{2} x + \frac {1}{3} \, {\left (2 \, b c d + a d^{2}\right )} x^{3} + \frac {1}{2} \, {\left (b c^{2} + 2 \, a c d\right )} x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(d*x+c)^2,x, algorithm="maxima")

[Out]

1/4*b*d^2*x^4 + a*c^2*x + 1/3*(2*b*c*d + a*d^2)*x^3 + 1/2*(b*c^2 + 2*a*c*d)*x^2

________________________________________________________________________________________

mupad [B]  time = 0.04, size = 47, normalized size = 1.24 \begin {gather*} x^2\,\left (\frac {b\,c^2}{2}+a\,d\,c\right )+x^3\,\left (\frac {a\,d^2}{3}+\frac {2\,b\,c\,d}{3}\right )+\frac {b\,d^2\,x^4}{4}+a\,c^2\,x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x)*(c + d*x)^2,x)

[Out]

x^2*((b*c^2)/2 + a*c*d) + x^3*((a*d^2)/3 + (2*b*c*d)/3) + (b*d^2*x^4)/4 + a*c^2*x

________________________________________________________________________________________

sympy [A]  time = 0.07, size = 49, normalized size = 1.29 \begin {gather*} a c^{2} x + \frac {b d^{2} x^{4}}{4} + x^{3} \left (\frac {a d^{2}}{3} + \frac {2 b c d}{3}\right ) + x^{2} \left (a c d + \frac {b c^{2}}{2}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(d*x+c)**2,x)

[Out]

a*c**2*x + b*d**2*x**4/4 + x**3*(a*d**2/3 + 2*b*c*d/3) + x**2*(a*c*d + b*c**2/2)

________________________________________________________________________________________